package cn.tedu.csmall.all.adapter;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"cn.tedu.csmall.all","cn.tedu.csmall.commons.exception"})
@EnableDubbo
//Dubbo必须记住内容：
//使用Dubbo框架核心：
//1.引入依赖
//2.服务提供者模块的业务层方法或类上标注@DubboService，并且在启动类上标注@EnableDubbo
//3.然后在服务的消费者模块业务层的成员变量上标注   @DubboReference注解来进行远程调用
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class,args);
    }
}
